package com.itheima.reggie.common;

/**
 * @author：shaodan.wang
 * @date: 2022-04-24
 */
public class BaseContext  {

    public static ThreadLocal<Long> threadLocal  = new ThreadLocal<>();

    public static void setCurrentId(Long id){
        threadLocal.set(id);
    }

    public static  Long getCurenId(){
        return threadLocal.get();
    }

}
